<div ng-controller="z-schedulWeek-c" z-loading is-loading="viewModel.isLoading">
	<div viewstack class="carousel slide" data-ride="carousel" view-index="viewModel.viewIndex">
		<div class="carousel-inner" role="listbox">
			<div class="item active">
				<div class="row">
                    <div class="col-lg-12 heading">
                        <ul id="crumb" class="breadcrumb">
	                       <li>
		                        <i class="im-home"></i>
		                        <a href="index.html">首页</a>
	                        </li>
	                        <li ng-repeat="menu in viewModel.menuList">
	                        	<i class="{{menu.icons}}" ng-if="$index+1!=viewModel.menuList.length"></i>
	                        	<i class="en-arrow-right7" ng-if="$index+1==viewModel.menuList.length"></i>
	                        	{{menu.label}}
	                        </li>
                        </ul>
                    </div>
                </div>
                <div class="outlet">
	                <div class="panel-body">
	                    <form class="form-horizontal group-border hover-stripped" role="form" name="form">
	                       <div class="row">
								<div class="col-xs-12 col-sm-10 col-md-11 form-box">
								    <div class="col-sm-6 col-md-4 col-lg-3 form-item">
										<div class="col-sm-5 col-md-5 form-title">班次名称：</div>
										<div class="col-sm-7 col-md-7 form-input">
											<div class="input-group">
												<input name="swName" 
													   ng-model="viewModel.swName" 
													   type="text" 
													   placeholder="班次名称" 
													   maxLength="60"
													   class="form-control"
													   tabIndex="1">
											</div>
										</div>
									</div>
									<div class="col-sm-6 col-md-4 col-lg-3 form-item">
										<div class="col-sm-5 col-md-5 form-title">班次类型：</div>
										<div class="col-sm-7 col-md-7 form-input">
											<div class="input-group">
												<select name="swType" class="form-control" ng-model="viewModel.swType" tabIndex="2">
				                                    <option value=""></option>
				                                    <option value="1">周班次</option>
				                                    <option value="2">无规律班次</option>
				                                </select>
											</div>
										</div>
									</div>
									<div class="col-sm-6 col-md-4 col-lg-4 form-item">
										<div class="col-sm-4 col-md-4 form-title">员工：</div>
										<div class="col-sm-8 col-md-8 form-input">
											<div class="input-group">
												<textarea ng-model="viewModel.employeeNo" placeholder="员工号、中文名称、英文名称" class="form-control elastic __web-inspector-hide-shortcut__" rows="1"></textarea>
											</div>
										</div>
									</div>
								</div>
								<div class="col-xs-12 col-sm-10 col-md-11 form-box">
									<div class="col-sm-6 col-md-4 col-lg-4 form-item">
										<div class="col-sm-3 col-md-3 form-title">年份：</div>
										<div class="col-sm-2 col-md-2 form-input">
											<div class="input-group">
												<select name="swYear" class="form-control" ng-model="viewModel.swYear" tabIndex="3">
				                                    <option value=""></option>
				                                    <option ng-repeat="year in viewModel.swYearData">{{year}}</option>
				                                </select>
											</div>
										</div>
										<div class="col-sm-2 col-md-2 form-title">月份：</div>
										<div class="col-sm-2 col-md-2 form-input">
											<div class="input-group">
												<select name="swMonth" class="form-control" ng-model="viewModel.swMonth" tabIndex="4">
				                                    <option value=""></option>
				                                    <option value="1">01</option>
				                                    <option value="2">02</option>
				                                    <option value="3">03</option>
				                                    <option value="4">04</option>
				                                    <option value="5">05</option>
				                                    <option value="6">06</option>
				                                    <option value="7">07</option>
				                                    <option value="8">08</option>
				                                    <option value="9">09</option>
				                                    <option value="10">10</option>
				                                    <option value="11">11</option>
				                                    <option value="12">12</option>
				                                </select>
											</div>
										</div>
									</div>
									<div class="col-sm-6 col-md-4 col-lg-3 form-item" style='margin-left: -112px;'>
									  <div class="col-sm-5 col-md-5 form-title">日期：</div>
									   <div class="col-sm-7 col-md-7 form-input">
										<div class="input-group">
											<input name="ate" 
												   ng-model="viewModel.date" 
												   class="form-control datetime-picker" 
												   type="text"
												   autofocus="autofocus" 
												   ng-click="viewModel.dateOpen($event)"
												   maxLength="10"
												   z-datepicker-popup="{{viewModel.format}}"
												   is-open="viewModel.dateOpnened"
												   datepicker-options="viewModel.dateOptions"
											       close-text="Close"
											       required
											       readonly>
											<span class="input-group-addon cursorPointer" ng-click="viewModel.dateOpen($event)"><i class="fa-calendar"></i></span>
										</div>
									   </div>
								    </div>
								    <div class="col-sm-6 col-md-4 col-lg-3 form-item" style='padding: 0px;'>
										<div class="col-sm-5 col-md-5 form-input-left">
											<button type="button" class="btn btn-success" ng-click="viewModel.rowCount=1;viewModel.bindData()" tabIndex="4">搜索</button>
										</div>
									</div>
								</div>
							</div>
	                    </form>
	                </div>
                </div>
                <div class="outlet outbon">
					<button class="btn btn-success" ng-click="viewModel.add(1)" tabIndex="1">新增周班次</button>
					<button class="btn btn-success" ng-click="viewModel.add(2)" tabIndex="2">新增无规律班次</button>
					<button class="btn btn-success" ng-click="viewModel.batchPunchTime()" tabIndex="3">批量设置考勤时间</button>
					<button class="btn btn-success" ng-click="importModel.load()" tabIndex="4">导入</button>
                </div>
				<div class="container-fluid">
					<div class="row">
						<!-- <table class="table table-striped  table-bordered table-hover"> -->
						<table class="table table-striped table-bordered" cellspacing="0" width="100%">
							<thead>
								<tr>
									<td width="80">
										<input type="checkbox" 
											   ng-model="viewModel.checkAll" 
											   ng-click="viewModel.checkboxAll()">
										<b>全选</b>
									</td>
									<th>班次名称</th>
									<th width="6%">班次类型</th>
									<th width="6%">人员</th>
									<th width="15%">考勤时间</th>
									<th width="9%">开始日期</th>
									<th width="9%">结束日期</th>
									<th width="8%">是否根据法定<br>节假日调休状态</th>
									<th width="17%">操作</th>
								</tr>
							</thead>
							<tbody>
								<tr ng-repeat="schedulWeek in viewModel.dataList">
									<td class="htgl-style10">
										<input type="checkbox" 
											   ng-model="schedulWeek.checkbox" 
					                           ng-click="viewModel.checkbox(schedulWeek)">
									</td>
									<td>{{schedulWeek.swName}}</td>
									<td ng-switch="schedulWeek.swType">
										<span ng-switch-when="1">按周班次</span>
										<span ng-switch-when="2">无规律班次</span> 
									</td>
									<td>
										<span ng-if="schedulWeek.employeeSum==null">0</span>
										<span ng-if="schedulWeek.employeeSum!=null"><a href="#" ng-click="viewEmployeeDetailedModel.employeeDetailed(schedulWeek)">{{schedulWeek.employeeSum}}/人</a></span>
									</td>
									<td>
										<span ng-if="schedulWeek.startFromTime!=null">
											{{schedulWeek.startFromTime}}-{{schedulWeek.startToTime}} 间隔：{{schedulWeek.startInterval}}
											<br>
											{{schedulWeek.endFromTime}}-{{schedulWeek.endToTime}} 间隔：{{schedulWeek.endInterval}}
										</span>
										<span ng-if="schedulWeek.startFromTime==null">
											不同打卡时间
										</span>
									</td>
									<td>{{schedulWeek.fromDate | date:'yyyy/MM/dd'}}</td>
									<td>{{schedulWeek.thruDate | date:'yyyy/MM/dd'}}</td>
									<td ng-switch="schedulWeek.isHoliday">
										<span ng-switch-when="1">是</span>
										<span ng-switch-when="0">否</span> 
									</td>
									<td>
										<button type="button" class="btn btn-primary btn-sm" ng-click="viewModel.update(schedulWeek)">修改</button>
										<button type="button" class="btn btn-danger btn-sm" ng-disabled="viewModel.isDisabled(schedulWeek)" ng-click="viewModel.del(schedulWeek)">删除</button>
										<button type="button" class="btn btn-success btn-sm" ng-click="viewModel.exportData(schedulWeek)">员工明细导出</button>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
					<div class="row">
						<div z-Pagination total-Data='viewModel.totalData'
							per-Page='viewModel.perPage'
							current-Page='viewModel.rowCount'
							on-Click="viewModel.bindData()"
							on-Change-Per-Page="viewModel.bindData()"></div>
					</div>
				</div>
			</div>
			<div class="item">
				<div class="row">
                    <div class="col-lg-12 heading">
                        <ul id="crumb" class="breadcrumb">
	                       <li>
		                        <i class="im-home"></i>
		                        <a href="index.html">首页</a>
	                        </li>
	                        <li ng-repeat="menu in viewModel.menuList">
	                        	<i class="{{menu.icons}}" ng-if="$index+1!=viewModel.menuList.length"></i>
	                        	<i class="en-arrow-right7" ng-if="$index+1==viewModel.menuList.length"></i>
	                        	{{menu.label}}
	                        </li>
                        </ul>
                    </div>
                </div>
                <div class="row">
                    <div class="panel-heading panel-heading-edit">
                       <h4 class="panel-title">{{editModel.title}}</h4>
                    </div>
                </div>
		        <div class="container-fluid">
		        	<div class="row">
		        		<form name="editForm">
							<div class="form-group">
								<div class="col-md-12 form-item" ng-show="editModel.schedulWeek.swType==1">
									<!-- <table class="table table-striped  table-bordered table-hover"> -->
									<table class="table table-striped table-bordered tablemb" cellspacing="0" width="100%">
										<thead>
											<tr>
												<th width="50">全选</th>
												<th>周天</th>
												<th>周一</th>
												<th>周二</th>
												<th>周三</th>
												<th>周四</th>
												<th>周五</th>
												<th>周六</th>
											</tr>
										</thead>
										<tbody>
											<tr>
												<td>
													<input type="checkbox"
														   ng-model="editModel.fixedChecked"
													       ng-click="editModel.fixedCheckedAll()">
												</td>
												<td>
													<!-- ng-disabled="editModel.disabled(editModel.schedulWeek)" -->
													<input type="checkbox"
													      ng-checked="editModel.chkChecked(editModel.schedulWeek.swSunday)"
													      ng-click="editModel.isWeekCheckbox(7)">
												</td>
												<td>
													<input type="checkbox" 
													  	  ng-checked="editModel.chkChecked(editModel.schedulWeek.swMonday)"
													  	  ng-click="editModel.isWeekCheckbox(1)">
												</td>
												<td>
													<input type="checkbox" 
													      ng-checked="editModel.chkChecked(editModel.schedulWeek.swTuesday)" 
													      ng-click="editModel.isWeekCheckbox(2)">
												</td>
												<td>
													<input type="checkbox" 
													      ng-checked="editModel.chkChecked(editModel.schedulWeek.swWednesday)"
													      ng-click="editModel.isWeekCheckbox(3)">
												</td>
												<td>
													<input type="checkbox" 
													      ng-checked="editModel.chkChecked(editModel.schedulWeek.swThursday)"
													      ng-click="editModel.isWeekCheckbox(4)">
												</td>
												<td>
													<input type="checkbox" 
													      ng-checked="editModel.chkChecked(editModel.schedulWeek.swFriday)"
													      ng-click="editModel.isWeekCheckbox(5)">
												</td>
												<td>
													<input type="checkbox" 
													      ng-checked="editModel.chkChecked(editModel.schedulWeek.swSaturday)"
													      ng-click="editModel.isWeekCheckbox(6)">
												</td>
											</tr>
										</tbody> 
									</table>
								</div>		
								<div class="col-md-12 form-item" style="overflow-x:auto;" ng-show="editModel.schedulWeek.swType==2">
									<table class="table table-striped table-bordered" cellspacing="0" style="width: 3400px;">
										<thead>
											<tr>
												<th width="50">全选</th>
												<th ng-repeat="weeks in editModel.weeksList">
												{{weeks.weeksName}}<br>{{weeks.weeksNumber}}
												</th>
											</tr>
										</thead>
										<tbody>
											<tr>
												<td>
													<input type="checkbox"
														   ng-model="editModel.irregularChecked"
													       ng-click="editModel.irregularCheckedAll()">
												</td>
												<td>
													<!-- ng-disabled="editModel.monthDisabled('01')" -->
													<input type="checkbox"
														ng-model="editModel.day01"
														ng-checked="editModel.isCheckbox('01')"
														ng-click="editModel.isIrregularWeekCheckbox('01')">
												</td>
												<td>
													<input type="checkbox"
														ng-model="editModel.day02"
														ng-checked="editModel.isCheckbox('02')"
														ng-click="editModel.isIrregularWeekCheckbox('02')">
												</td>
												<td>
													<input type="checkbox"
														ng-model="editModel.day03"
														ng-checked="editModel.isCheckbox('03')"
														ng-click="editModel.isIrregularWeekCheckbox('03')">
												</td>
												<td>
													<input type="checkbox"
														ng-model="editModel.day04"
														ng-checked="editModel.isCheckbox('04')"
														ng-click="editModel.isIrregularWeekCheckbox('04')">
												</td>
												<td>
													<input type="checkbox"
														ng-model="editModel.day05"
														ng-checked="editModel.isCheckbox('05')"
														ng-click="editModel.isIrregularWeekCheckbox('05')">
												</td>
												<td>
													<input type="checkbox"
														ng-model="editModel.day06"
														ng-checked="editModel.isCheckbox('06')"
														ng-click="editModel.isIrregularWeekCheckbox('06')">
												</td>
												<td>
													<input type="checkbox"
														ng-model="editModel.day07"
														ng-checked="editModel.isCheckbox('07')"
														ng-click="editModel.isIrregularWeekCheckbox('07')">
												</td>
												<td>
													<input type="checkbox"
														ng-model="editModel.day08"
														ng-checked="editModel.isCheckbox('08')"
														ng-click="editModel.isIrregularWeekCheckbox('08')">
												</td>
												<td>
													<input type="checkbox"
														ng-model="editModel.day09"
														ng-checked="editModel.isCheckbox('09')"
														ng-click="editModel.isIrregularWeekCheckbox('09')">
												</td>
												<td>
													<input type="checkbox"
														ng-model="editModel.day10"
														ng-checked="editModel.isCheckbox('10')"
														ng-click="editModel.isIrregularWeekCheckbox('10')">
												</td>
												<td>
													<input type="checkbox"
														ng-model="editModel.day11"
														ng-checked="editModel.isCheckbox('11')"
														ng-click="editModel.isIrregularWeekCheckbox('11')">
												</td>
												<td>
													<input type="checkbox"
														ng-model="editModel.day12"
														ng-checked="editModel.isCheckbox('12')"
														ng-click="editModel.isIrregularWeekCheckbox('12')">
												</td>
												<td>
													<input type="checkbox"
														ng-model="editModel.day13"
														ng-checked="editModel.isCheckbox('13')"
														ng-click="editModel.isIrregularWeekCheckbox('13')">
												</td>
												<td>
													<input type="checkbox"
														ng-model="editModel.day14"
														ng-checked="editModel.isCheckbox('14')"
														ng-click="editModel.isIrregularWeekCheckbox('14')">
												</td>
												<td>
													<input type="checkbox"
														ng-model="editModel.day15"
														ng-checked="editModel.isCheckbox('15')"
														ng-click="editModel.isIrregularWeekCheckbox('15')">
												</td>
												<td>
													<input type="checkbox"
														ng-model="editModel.day16"
														ng-checked="editModel.isCheckbox('16')"
														ng-click="editModel.isIrregularWeekCheckbox('16')">
												</td>
												<td>
													<input type="checkbox"
														ng-model="editModel.day17"
														ng-checked="editModel.isCheckbox('17')"
														ng-click="editModel.isIrregularWeekCheckbox('17')">
												</td>
												<td>
													<input type="checkbox"
														ng-model="editModel.day18"
														ng-checked="editModel.isCheckbox('18')"
														ng-click="editModel.isIrregularWeekCheckbox('18')">
												</td>
												<td>
													<input type="checkbox"
														ng-model="editModel.day19"
														ng-checked="editModel.isCheckbox('19')"
														ng-click="editModel.isIrregularWeekCheckbox('19')">
												</td>
												<td>
													<input type="checkbox"
														ng-model="editModel.day20"
														ng-checked="editModel.isCheckbox('20')"
														ng-click="editModel.isIrregularWeekCheckbox('20')">
												</td>
												<td>
													<input type="checkbox"
														ng-model="editModel.day21"
														ng-checked="editModel.isCheckbox('21')"
														ng-click="editModel.isIrregularWeekCheckbox('21')">
												</td>
												<td>
													<input type="checkbox"
														ng-model="editModel.day22"
														ng-checked="editModel.isCheckbox('22')"
														ng-click="editModel.isIrregularWeekCheckbox('22')">
												</td>
												<td>
													<input type="checkbox"
														ng-model="editModel.day23"
														ng-checked="editModel.isCheckbox('23')"
														ng-click="editModel.isIrregularWeekCheckbox('23')">
												</td>
												<td>
													<input type="checkbox"
														ng-model="editModel.day24"
														ng-checked="editModel.isCheckbox('24')"
														ng-click="editModel.isIrregularWeekCheckbox('24')">
												</td>
												<td>
													<input type="checkbox"
														ng-model="editModel.day25"
														ng-checked="editModel.isCheckbox('25')"
														ng-click="editModel.isIrregularWeekCheckbox('25')">
												</td>
												<td>
													<input type="checkbox"
														ng-model="editModel.day26"
														ng-checked="editModel.isCheckbox('26')"
														ng-click="editModel.isIrregularWeekCheckbox('26')">
												</td>
												<td>
													<input type="checkbox"
														ng-model="editModel.day27"
														ng-checked="editModel.isCheckbox('27')"
														ng-click="editModel.isIrregularWeekCheckbox('27')">
												</td>
												<td>
													<input type="checkbox"
														ng-model="editModel.day28"
														ng-checked="editModel.isCheckbox('28')"
														ng-click="editModel.isIrregularWeekCheckbox('28')">
												</td>
												<td>
													<input type="checkbox" 
														ng-model="editModel.day29"
														ng-checked="editModel.isCheckbox('29')"
														ng-click="editModel.isIrregularWeekCheckbox('29')">
												</td>
												<td>
													<input type="checkbox" 
														ng-model="editModel.day30"
														ng-checked="editModel.isCheckbox('30')"
														ng-click="editModel.isIrregularWeekCheckbox('30')">
												</td>
												<td>
													<input type="checkbox" 
														ng-model="editModel.day31"
														ng-checked="editModel.isCheckbox('31')"
														ng-click="editModel.isIrregularWeekCheckbox('31')">
												</td>
											</tr>
											<tr>
												<td>
													
												</td>
												<td ng-repeat="weeks in editModel.weeksList">
													<button type="button" 
														ng-click="editModel.openPunchTime(weeks.weeksNumber)"
														ng-disabled="editModel.operationDisabled(weeks.weeksNumber)"
														ng-class="editModel.operationClass(weeks.weeksNumber,'punchTime')">
														时间
													</button>
													<button type="button"
														class="btn btn-danger btn-sm bt-margin-bottom"
														ng-disabled="editModel.operationShow(weeks.weeksNumber,'punchTime')"
														ng-click="editModel.delPunchTime(weeks.weeksNumber)">
														删除
													</button>
													<br>
													<button type="button"
														ng-click="editModel.openEmployee(weeks.weeksNumber)"
														ng-disabled="editModel.operationDisabled(weeks.weeksNumber)"
														ng-class="editModel.operationClass(weeks.weeksNumber,'employee')">
														员工
													</button>
													<button type="button" 
														class="btn btn-danger btn-sm bt-margin-bottom"
														ng-disabled="editModel.operationShow(weeks.weeksNumber,'employee')"
														ng-click="editModel.delEmployee(weeks.weeksNumber)">
														删除
													</button>
													<br>
													<button type="button"
														ng-click="editModel.openRest(weeks.weeksNumber)"
														ng-disabled="editModel.operationDisabled(weeks.weeksNumber)"
														ng-class="editModel.operationClass(weeks.weeksNumber,'rest')"
														ng-show="editModel.type==false">
														串休
													</button>
													<button type="button" 
														class="btn btn-danger btn-sm bt-margin-bottom"
														ng-disabled="editModel.operationShow(weeks.weeksNumber,'rest')"
														ng-click="editModel.delRest(weeks.weeksNumber)"
														ng-show="editModel.type==false">
														删除
													</button>
												</td>
											</tr>
										</tbody>
									</table>
								</div>
								<div class="col-md-12 form-item">
									<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>班次名称：</div>
									<div class="col-sm-3 col-md-3 form-input"
										 ng-class="{ 'has-error' : editForm.swName.$dirty && editForm.swName.$invalid}">
									 	<input name="swName" 
									 		class="form-control" 
									 		ng-model="editModel.schedulWeek.swName" 
									 		maxLength="100"
									 		required>
									</div>
								</div>
								<div class="col-md-12 form-item" ng-show="editModel.schedulWeek.swType==2">
									<div class="col-sm-3 col-md-3 form-title">
										    <span>年</span>：
									</div>
						            <div class="col-sm-1 col-md-1 form-input">
						            	<!-- ng-disabled="editModel.disabled(editModel.schedulWeek)" -->
						           	 	<select name="holidayYear" 
											   ng-model="editModel.year" 
											   class="form-control ng-pristine ng-valid">
										       <option ng-repeat="year in viewModel.yearData" value="{{year}}" ng-selected="editModel.year==year">{{year}}</option>
										</select>
						            </div>
						            <div class="col-sm-1 col-md-1 form-title">
											<span>月</span>：
									</div>
						            <div class="col-sm-1 col-md-1 form-input">
						            	<!-- ng-disabled="editModel.disabled(editModel.schedulWeek)" -->
						           	 	<select id="month" 
						           	 		class="form-control ng-pristine ng-valid" 
						           	 		ng-model="editModel.month" 
						           	 		ng-change="viewModel.select()">
									 	   <option value="01">01</option>
									 	   <option value="02">02</option>
									 	   <option value="03">03</option>
									 	   <option value="04">04</option>
									 	   <option value="05">05</option>
									 	   <option value="06">06</option>
									 	   <option value="07">07</option>
									 	   <option value="08">08</option>
									 	   <option value="09">09</option>
									 	   <option value="10">10</option>
									 	   <option value="11">11</option>
									 	   <option value="12">12</option>
									 	</select>
						            </div>
								</div>
								<!-- <div class="col-md-12 form-item" ng-show="editModel.schedulWeek.swType==2">
								</div> -->
								<!-- <div class="col-md-12 form-item" ng-show="editModel.schedulWeek.swType==2">
									<div class="col-sm-3 col-md-3 form-title">
											<span>考勤时间类型</span>：
									</div>
						            <div class="col-sm-2 col-md-2 form-input">
						           	 	<select class="form-control ng-pristine ng-valid" 
						           	 			ng-model="editModel.operationType"
						           	 			ng-change="editModel.operationSelect()"
						           	 			ng-disabled="editModel.disabled(editModel.schedulWeek)">
									 	   <option value="1">相同</option>
									 	   <option value="2">不同</option>
									 	</select>
						            </div>
								</div> -->
								<div class="col-md-12 form-item" ng-show="editModel.schedulWeek.swType==1">
									<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>开始日期：</div>
									<div class="col-sm-3 col-md-3 form-input" ng-class="{ 'has-error' : editForm.fromDate.$dirty && editForm.fromDate.$invalid}">
									  	<div class="input-group">
											<!-- ng-disabled="editModel.disabled(editModel.schedulWeek)" -->
											<input name="fromDate" 
												   ng-model="editModel.schedulWeek.fromDate" 
												   class="form-control datetime-picker" 
												   type="text" 
												   autofocus="autofocus" 
												   maxLength="10"
												   z-datepicker-popup="{{viewModel.format}}"
												   is-open="viewModel.fromDateOpened"
												   datepicker-options="viewModel.dateOptions"
											       close-text="Close"
											       required
											       readonly>
											<span class="input-group-addon cursorPointer" ng-click="viewModel.fromDateOpen($event)"><i class="fa-calendar"></i></span>
										</div>
									</div>	
									<div class="col-sm-1 col-md-1 form-title"><span style="color:red;">*</span>结束日期：</div>
									<div class="col-sm-3 col-md-3 form-input" ng-class="{ 'has-error' : editForm.thruDate.$dirty && editForm.thruDate.$invalid}">
									  	<div class="input-group">
											<input name="thruDate" 
												   ng-model="editModel.schedulWeek.thruDate" 
												   class="form-control datetime-picker" 
												   type="text" 
												   autofocus="autofocus" 
												   maxLength="10"
												   z-datepicker-popup="{{viewModel.format}}"
												   is-open="viewModel.thruDateOpened"
												   datepicker-options="viewModel.dateOptions"
											       close-text="Close"
											       required
											       readonly>
											<span class="input-group-addon cursorPointer" ng-click="viewModel.thruDateOpen($event)"><i class="fa-calendar"></i></span>
										</div>
									</div>
								</div>
								<!-- <div class="col-md-12 form-item" ng-show="editModel.schedulWeek.swType==1">
									<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>结束日期：</div>
									<div class="col-sm-8 col-md-8 form-input" ng-class="{ 'has-error' : editForm.thruDate.$dirty && editForm.thruDate.$invalid}">
									  	<div class="input-group">
											<input name="thruDate" 
												   ng-model="editModel.schedulWeek.thruDate" 
												   class="form-control datetime-picker" 
												   type="text" 
												   autofocus="autofocus" 
												   maxLength="10"
												   z-datepicker-popup="{{viewModel.format}}"
												   is-open="viewModel.thruDateOpened"
												   datepicker-options="viewModel.dateOptions"
											       close-text="Close"
											       required
											       readonly>
											<span class="input-group-addon cursorPointer" ng-click="viewModel.thruDateOpen($event)"><i class="fa-calendar"></i></span>
										</div>
									</div>	
								</div> -->
								<div class="col-md-12 form-item" ng-show="editModel.schedulWeek.swType==1">
									<div class="col-sm-3 col-md-3 form-title">
										 <span style="color:red;">*</span>设置人员：
									</div>
						            <div class="col-sm-8 col-md-8 form-input">
						           	 	<button type="button" class="btn btn-success" ng-click="viewEmployeeModel.addEmployee()">选择</button>
						           	 	（{{editModel.schedulWeek.employeeIdList.length}}）人
						            </div>
								</div>
								<div class="col-md-12 form-item">
									<div class="col-sm-3 col-md-3 form-title">
										<span style="color:red;" ng-show="editModel.schedulWeek.swType==1">*</span>考勤时间设置：
									</div>
						            <div class="col-sm-8 col-md-8 form-input">
						           	 	<button type="button" class="btn btn-success" ng-click="viewPunchTimeModel.addPunchTime()">选择</button>
						            	<span ng-if="editModel.schedulWeek.startFromTime!=null">
						            	早上({{editModel.schedulWeek.startFromTime}}-{{editModel.schedulWeek.startToTime}} 间隔：{{editModel.schedulWeek.startInterval}})
										晚上({{editModel.schedulWeek.endFromTime}}-{{editModel.schedulWeek.endToTime}} 间隔：{{editModel.schedulWeek.endInterval}})
						            	</span>
						            </div>
								</div>
								<!-- <div class="col-md-12 form-item"
									ng-show="editModel.schedulWeek.swType==2 && editModel.operationType==1"
									ng-hide="editModel.schedulWeek.swType==1">
									<div class="col-sm-3 col-md-3 form-title">
										考勤时间设置：
									</div>
						            <div class="col-sm-8 col-md-8 form-input">
						           	 	<button type="button" class="btn btn-success" ng-click="viewPunchTimeModel.addPunchTime()" ng-disabled="editModel.schedulWeek.isDefault==1">选择考勤时间</button>
						           		<span ng-if="editModel.schedulWeek.startFromTime!=null">
						            	早上({{editModel.schedulWeek.startFromTime}}-{{editModel.schedulWeek.startToTime}} 间隔：{{editModel.schedulWeek.startInterval}})
										晚上({{editModel.schedulWeek.endFromTime}}-{{editModel.schedulWeek.endToTime}} 间隔：{{editModel.schedulWeek.endInterval}})
						            	</span>
						            </div>
								</div> -->
								<!-- <div class="col-md-12 form-item">
									<div class="col-sm-3 col-md-3 form-title">
									</div>
						            <div class="col-sm-8 col-md-8 form-span">
						            	<span ng-if="editModel.schedulWeek.startFromTime!=null">
						            	早上({{editModel.schedulWeek.startFromTime}}-{{editModel.schedulWeek.startToTime}} 间隔：{{editModel.schedulWeek.startInterval}})
										晚上({{editModel.schedulWeek.endFromTime}}-{{editModel.schedulWeek.endToTime}} 间隔：{{editModel.schedulWeek.endInterval}})
						            	</span>
						            </div>
								</div> -->
								<div class="col-md-12 form-item">
									<div class="col-sm-3 col-md-3 form-title">
										法定节假日设置：
									</div>
						            <div class="col-sm-1 col-md-1 form-input">
						          		 <!-- 是否根据法定节假日放假安排自动调整班次 -->
						           	 	<select class="form-control" ng-model="editModel.schedulWeek.isHoliday" ng-disabled="editModel.schedulWeek.isDefault==1">
											<option value="1">是</option>
											<option value="0">否</option>
										</select>
						            </div>
						            <div class="col-sm-2 col-md-2">
						           	 	<button type="button" class="btn btn-warning" ng-click="viewHolidayModel.load()">查看</button>
						            </div>
								</div>
								<!-- <div class="col-md-12 form-item">
									<div class="col-sm-3 col-md-3 form-title">
									</div>
						            <div class="col-sm-3 col-md-3 form-input">
						           	 	<button type="button" class="btn btn-warning" ng-click="viewHolidayModel.load()">查看法定节假日</button>
						            </div>
								</div> -->
								<!-- <div class="col-md-12 form-item" ng-show="editModel.schedulWeek.swType==1">
									<div class="col-sm-3 col-md-3 form-title">
										默认状态：
									</div>
						            <div class="col-sm-8 col-md-8 form-input">
						           	 	<select class="form-control" ng-model="editModel.schedulWeek.isDefault">
											<option value="1" >是</option>
											<option value="0" >否</option>
										</select>
						            </div>
								</div> -->
							</div>	
						</form>
		        	</div>
			        <div class="row">
		            	<div class="navbar navbar-inverse navbar-fixed-bottom">
				            <div class="navbar-inner">
				                <!--fluid 是偏移一部分-->
				                <div class="container-fluid">
				                    <button class="btn btn-primary"
						                    style="margin-right:5px;"
						                    ng-click="viewModel.save()">保存</button>
						            <button class="btn btn-default"
						                    style="margin-right:5px;" ng-click="viewModel.cancel()">取消</button>
				                </div>
				            </div>
				        </div>
			        </div>
		        </div>
		    </div>
		</div>
	</div>
	<!-- <z-Dialog show-Save-Btn="viewModel.showSaveBtn" 
			have-Error-Class="false" 
			load-Url="static/html/schedulWeek/schedulWeekEdit.html" 
			title="{{editModel.title}}" 
			show="viewModel.show"
			cancel-fn="viewModel.unLoad()"
			save-fn="viewModel.save()"
			body-Height="editModel.bodyHeight"></z-Dialog> -->
    <z-Dialog show-Save-Btn="viewModel.showSaveBtn"
           have-Error-Class="false"
           load-Url="static/html/schedulWeek/selectEmployee.html"
    	   title="{{viewEmployeeModel.title}}"
    	   show="viewEmployeeModel.show"
           save-fn="viewEmployeeModel.saveEmployee()"
           cancel-fn="viewEmployeeModel.unLoad()"
           body-Width="900"></z-Dialog>
	<z-Dialog show-Save-Btn="true" 
			have-Error-Class="false" 
			load-Url="static/html/schedulWeek/selectPunchTime.html" 
			title="{{viewPunchTimeModel.title}}" 
			show="viewPunchTimeModel.show"
			cancel-fn="viewPunchTimeModel.unLoad()"
			save-fn="viewPunchTimeModel.save()"
			body-Height="580"
			body-Width="900"></z-Dialog>
	<z-Dialog show-Save-Btn="false" 
			have-Error-Class="true" 
			load-Url="static/html/schedulWeek/selectHoliday.html" 
			title="{{viewHolidayModel.title}}" 
			show="viewHolidayModel.show"
			cancel-fn="viewHolidayModel.unLoad()"></z-Dialog>
	<z-Dialog show-Save-Btn="false" 
			have-Error-Class="true" 
			load-Url="static/html/schedulWeek/employeeDetailed.html" 
			title="{{viewEmployeeDetailedModel.title}}" 
			show="viewEmployeeDetailedModel.show"
			cancel-fn="viewEmployeeDetailedModel.unLoad()"
			body-Width="950"></z-Dialog>
    <z-Dialog show-Save-Btn="true"
          have-Error-Class="false"
          load-Url="static/html/schedulWeek/schedulWeekRest.html"
	   	  title="{{viewSwRestModel.title}}"
	   	  show="viewSwRestModel.show"
          save-fn="viewSwRestModel.save()"
          cancel-fn="viewSwRestModel.unLoad()"
          body-Width="900"></z-Dialog>
    <z-Dialog show-Save-Btn="false"
          have-Error-Class="false"
          load-Url="static/html/schedulWeek/schedulWeekImport.html"
	   	  title="{{importModel.title}}"
	   	  show="importModel.show"
          cancel-fn="importModel.unLoad()"></z-Dialog>
</div>